from mvg import View, List, Label, Entry, Check, Button, NEXT

class AlbumView(View):

    def make_widgets(self):
        Label(text='Count:', r=0, c=0)
        Label(atr='count', c=NEXT)
        
        List(atr = 'albums', r=NEXT, c=0, rows=8, cols=2)
        
        Button(atr = 'new_album', text="New Album", r=NEXT, c=0)
        Button(atr = 'order', c=NEXT)

        Label(text="Album:", r=0, c=3)
        Entry(atr = 'album', c=NEXT)

        Label(text="Artist:", r=NEXT, c=3)
        Entry(atr = 'artist', c=NEXT)

        Label(text='Clasical:', r=NEXT, c=3)
        Check(atr = 'classical', c=NEXT)

        Label(text="Composer:", r=NEXT, c=3)
        Entry(atr = 'composer', c=NEXT)

        Label(r=NEXT)
        
        Button(atr = 'save', text="Save", r=NEXT, c=3)
        Button(atr = 'cancel', text="Cancel", c=NEXT)
        
        Label(r=NEXT, c=2)
        Label(r=NEXT)
